package com.example.fresheveryday.po;


import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Viewhistory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 商品id
     */
    @TableField("productId")
    private Integer productid;

    /**
     * 用户id
     */
    @TableField("userId")
    private String userid;

    /**
     * 浏览时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd'T'HH:mm:ss")
    @TableField("viewTime")
    private Date viewtime;

    @TableField(exist = false)
    private Product productname;


}
